<template>
  <div>
    <div>
      <h4>运动功能</h4>
      <el-row>
        <el-col>
          <span>1.1. 受限关节及ROM</span>
        </el-col>
        <el-col>
          <span>左侧（L）</span>
        </el-col>
        <el-col :span="6">
          <span>四指指掌指关节</span>
        </el-col>
        <el-col :span="9">
          <div>
            <span>屈曲</span>
            <el-input v-model="pgForm.sxgj_zc_szzz_qq" ></el-input>
          </div>
        </el-col>
        <el-col :span="9">
          <div>
            <span>伸展</span>
            <el-input v-model="pgForm.sxgj_zc_szzz_sz" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <span>四指指间关节</span>
        </el-col>
        <el-col :span="9">
          <span>屈曲</span>
          <el-select v-model="pgForm.sxgj_zc_szzjgj_qq" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="9">
          <span>伸展</span>
          <el-select v-model="pgForm.sxgj_zc_szzjgj_sz" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-col>
        <el-col :span="6">
          <span>拇指外展/内收</span>
        </el-col>
        <el-col :span="9">
          <div>
            <span>外展</span>
            <el-input v-model="pgForm.sxgj_zc_mzwz_wz" ></el-input>
          </div>
        </el-col>
        <el-col :span="9">
          <div>
            <span>内收</span>
            <el-input v-model="pgForm.sxgj_zc_mzwz_ns" ></el-input>
          </div>
        </el-col>
        <el-col>
          <span>右侧（R）</span>
        </el-col>
        <el-col :span="6">
          <span>四指指掌指关节</span>
        </el-col>
        <el-col :span="9">
          <div>
            <span>屈曲</span>
            <el-input v-model="pgForm.sxgj_yc_szzz_qq" ></el-input>
          </div>
        </el-col>
        <el-col :span="9">
          <div>
            <span>伸展</span>
            <el-input v-model="pgForm.sxgj_yc_szzz_sz" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <span>四指指间关节</span>
        </el-col>
        <el-col :span="9">
          <div>
            <span>屈曲</span>
            <el-select v-model="pgForm.sxgj_yc_szzjgj_qq" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="9">
          <div>
            <span>伸展</span>
            <el-select v-model="pgForm.sxgj_yc_szzjgj_sz" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <span>拇指外展/内收</span>
        </el-col>
        <el-col :span="9">
          <div class="item">
            <span>外展</span>
            <el-input v-model="pgForm.sxgj_yc_mzwz_wz" ></el-input>
          </div>
        </el-col>
        <el-col :span="9">
          <div class="item">
            <span>内收</span>
            <el-input v-model="pgForm.sxgj_yc_mzwz_ns" ></el-input>
          </div>
        </el-col>
      </el-row>
     <el-row>
       <el-col>
         <span>1.2. 徒手肌力评估</span>
       </el-col>
       <el-col>
         <span>左侧（L）</span>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>上肢</span>
           <el-input v-model="pgForm.tsjlpg_zc_sz" ></el-input>
         </div>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>手指外展</span>
           <el-input v-model="pgForm.tsjlpg_zc_szwz" ></el-input>
         </div>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>拇指外展</span>
           <el-input v-model="pgForm.tsjlpg_zc_mzwz" ></el-input>
         </div>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>拇指伸展</span>
           <el-input v-model="pgForm.tsjlpg_zc_mzsz" ></el-input>
         </div>
       </el-col>
       <el-col>
         <span>右侧（R）</span>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>上肢</span>
           <el-input v-model="pgForm.tsjlpg_yc_sz" ></el-input>
         </div>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>手指外展</span>
           <el-input v-model="pgForm.tsjlpg_yc_szwz" ></el-input>
         </div>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>拇指外展</span>
           <el-input v-model="pgForm.tsjlpg_yc_mzwz" ></el-input>
         </div>
       </el-col>
       <el-col :span="6">
         <div class="item">
           <span>拇指伸展</span>
           <el-input v-model="pgForm.tsjlpg_yc_mzsz" ></el-input>
         </div>
       </el-col>
     </el-row>
      <el-row>
        <el-col>
          <span>1.3. 手部力量</span>
        </el-col>
        <el-col>
          <span>左侧（L）</span>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>握力</span>
            <el-input v-model="pgForm.sbll_zc_wl" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>测捏/匙状捏</span>
            <el-input v-model="pgForm.sbll_zc_cn" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>三指捏</span>
            <el-input v-model="pgForm.sbll_zc_szn" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>指尖捏</span>
            <el-input v-model="pgForm.sbll_zc_zzn" ></el-input>
          </div>
        </el-col>
        <el-col>
          <span>右侧（R）</span>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>握力</span>
            <el-input v-model="pgForm.sbll_yc_wl" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>测捏/匙状捏</span>
            <el-input v-model="pgForm.sbll_yc_cn" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>三指捏</span>
            <el-input v-model="pgForm.sbll_yc_szn" ></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="item">
            <span>指尖捏</span>
            <el-input v-model="pgForm.sbll_yc_zzn" ></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "motor_function",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        sxgj_zc_szzz_qq: '',
        sxgj_zc_szzz_sz: '',
        sxgj_zc_szzjgj_qq: '',
        sxgj_zc_szzjgj_sz: '',
        sxgj_zc_mzwz_wz: '',
        sxgj_zc_mzwz_ns: '',
        sxgj_yc_szzz_qq: '',
        sxgj_yc_szzz_sz: '',
        sxgj_yc_szzjgj_qq: '',
        sxgj_yc_szzjgj_sz: '',
        sxgj_yc_mzwz_wz: '',
        sxgj_yc_mzwz_ns: '',
        tsjlpg_zc_sz: '',
        tsjlpg_zc_szwz: '',
        tsjlpg_zc_mzwz: '',
        tsjlpg_zc_mzsz: '',
        tsjlpg_yc_sz: '',
        tsjlpg_yc_szwz: '',
        tsjlpg_yc_mzwz: '',
        tsjlpg_yc_mzsz: '',
        sbll_zc_wl: '',
        sbll_zc_cn: '',
        sbll_zc_szn: '',
        sbll_zc_zzn: '',
        sbll_yc_wl: '',
        sbll_yc_cn: '',
        sbll_yc_szn: '',
        sbll_yc_zzn: '',
      },
      options: [{
        value: '0',
        label: '食指'
      }, {
        value: '1',
        label: '中指'
      }, {
        value: '2',
        label: '示指'
      }, {
        value: '3',
        label: '小拇指'
      },]
    };
  },

}
</script>

<style scoped>

.el-input{
  width: 40%;
}
.el-select{
  width: 40%;
}
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}

</style>

